package com.blog.blog.mapper;

import com.blog.blog.vo.PermissionVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PermissionMapper {
    List<PermissionVO> listPermissions(String keyword);

    int insertPermission(com.blog.blog.dto.SavePermissionDTO dto);
    int updatePermission(@Param("id") Long id, @Param("dto") com.blog.blog.dto.SavePermissionDTO dto);
    int deletePermission(Long id);
}


